package com.nzw.pojo.commodity;

import javax.persistence.Column;
import javax.persistence.Table;
import java.util.Date;


@Table(name="t_commodity")
public class Commodity {
	
	private Long id;			//商品id
	private Long shopId;		//商户id
	private Long companyId;		//企业id
	private String title;		//商品标题
	private String des;			//商品描述
	private Integer origPrice;	//商品价格
	private Integer total;		//商品总数
	private	Date createDate;	//创建时间
	private	Date modifyDate;	//修改时间
	private String image;		//商品图片
	private Integer state;		//商品状态 1_待审核，2_审核成功，3_审核失败
	private Boolean isDel;		//是否删除
	private Long catId;			//分类id
	private Integer soldNum;	//销售数量
	private Integer orderOver;	//核销数
	private String unit;		//单位名称
	private Boolean del;		//



	@Column(name = "del")
	public Boolean getDel() {
		return del;
	}

	public void setDel(Boolean del) {
		this.del = del;
	}

	@Column(name="catId")
	public Long getCatId() {
		return catId;
	}
	public void setCatId(Long catId) {
		this.catId = catId;
	}

	@Column(name="isDel")
	public Boolean getIsDel() {
		return isDel;
	}
	public void setIsDel(Boolean isDel) {
		this.isDel = isDel;
	}

	@Column(name="id")
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	
	
	
	@Column(name="title")
	public String getTitle() {
		return title;
	}
	
	public void setTitle(String title) {
		this.title = title;
	}
	
	@Column(name="origPrice")
	public Integer getOrigPrice() {
		return origPrice;
	}
	
	public void setOrigPrice(Integer origPrice) {
		this.origPrice = origPrice;
	}
	

	@Column(name="total")
	public Integer getTotal() {
		return total;
	}
	
	public void setTotal(Integer total) {
		this.total = total;
	}
	
	@Column(name="createDate")
	public Date getCreateDate() {
		return createDate;
	}
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	
	@Column(name="modifyDate")
	public Date getModifyDate() {
		return modifyDate;
	}
	
	public void setModifyDate(Date modifyDate) {
		this.modifyDate = modifyDate;
	}
	

	@Column(name="image")
	public String getImage() {
		return image;
	}
	
	
	public void setImage(String image) {
		this.image = image;
	}
	
	@Column(name="state")
	public Integer getState() {
		return state;
	}
	public void setState(Integer state) {
		this.state = state;
	}

	@Column(name="shopId")
	public Long getShopId() {
		return shopId;
	}
	public void setShopId(Long shopId) {
		this.shopId = shopId;
	}
	

	@Column(name="soldNum")
	public Integer getSoldNum() {
		return soldNum;
	}
	public void setSoldNum(Integer soldNum) {
		this.soldNum = soldNum;
	}

	@Column(name="companyId")
	public Long getCompanyId() {
		return companyId;
	}

	public void setCompanyId(Long companyId) {
		this.companyId = companyId;
	}


	@Column(name = "orderOver")
	public Integer getOrderOver() {
		return orderOver;
	}

	public void setOrderOver(Integer orderOver) {
		this.orderOver = orderOver;
	}


	@Column(name = "unit")
	public String getUnit() {
		return unit;
	}

	public void setUnit(String unit) {
		this.unit = unit;
	}


	@Column(name = "des")
	public String getDes() {
		return des;
	}
	public void setDes(String des) {
		this.des = des;
	}

	@Override
	public String toString() {
		return "Commodity{" +
				"id=" + id +
				", shopId=" + shopId +
				", companyId=" + companyId +
				", title='" + title + '\'' +
				", descript='" + des + '\'' +
				", origPrice=" + origPrice +
				", total=" + total +
				", createDate=" + createDate +
				", modifyDate=" + modifyDate +
				", image='" + image + '\'' +
				", state=" + state +
				", isDel=" + isDel +
				", catId=" + catId +
				", soldNum=" + soldNum +
				", orderOver=" + orderOver +
				", unit='" + unit + '\'' +
				'}';
	}
}
